﻿ 
namespace Core.Items.Modules
{
    /*

		MetaGroup                      = Armor
		Group                          = ArmorHardeners
		ModuleClass                    = Chemical
		Module                         = platinum alchemist tycoon chemical armor
		CpuUsage                       = 26.00 TF
		ReactorUsage                   = 6.00 RP
		ActiveChemicalResistance       = 135 points (57.45%)
		PassiveChemicalResistance      = 26 points (20.63%)
		Type                           = Active
		Slot                           = Legs
		TechnologicalLevel             = T4+
		Mass                           = 90.00 kg
		PackedVolume                   = 0.50 U
		Volume                         = 1.00 U
		AccumulatorConsumption         = 14.00 AP
		CycleTime                      = 10.00 sec
    */

    using System;
    using Base;
    using Contracts.Enums;
    using Contracts.Interfaces;
    using Extensions;
    using Features;
    
    /// <summary>
    /// Platinum Alchemist Tycoon chemical armor module class
    /// </summary>
    /// <remarks>File generated on 31/10/2011 16:00:53</remarks>
    public sealed class PlatinumAlchemistTycoonChemicalArmor : ModuleBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="PlatinumAlchemistTycoonChemicalArmor"/> class.
        /// </summary>
        public PlatinumAlchemistTycoonChemicalArmor()
            : base(
            "Platinum Alchemist Tycoon chemical armor",
            "",
            ModuleMetaGroupsEnum.Armor,
            ModuleGroupsEnum.ArmorHardeners,
            TechnologyLevelsEnum.Level4|TechnologyLevelsEnum.Elite,
            SizesEnum.Small,
            new LazyFeature[] { 
				new LazyFeature(typeof(ArmorModuleCpuUsage<double>),26.00),
				new LazyFeature(typeof(ArmorModuleReactorUsage<double>),6.00),
				new LazyFeature(typeof(AccumulatorUsage<double>),14.00),
				new LazyFeature(typeof(CycleTime<double>),10.00),
				new LazyFeature(typeof(ModuleMass<double>),90.00), },
            null,
            new IModifier[] { 
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.RobotMass, 90.00 ){ IsVisible = false },
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.ChemicalResistance, 135){ ActivationState = ModuleActivationTypesEnum.Active, Unit = UnitsEnum.Points, DisplayName = "Chemical resistance"  },
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.ChemicalResistance, 26){ ActivationState = ModuleActivationTypesEnum.Passive, Unit = UnitsEnum.Points, DisplayName = "Chemical resistance"  }, } )
        {
        }

        /// <summary>
        /// Obtains the activation type
        /// </summary>
        public override ModuleActivationTypesEnum ActivationType
        {
            get { return ModuleActivationTypesEnum.Active; }
        }
        /// <summary>
        /// Obtains the module slot group 
        /// </summary>
        public override SlotGroupsEnum SlotGroup
        {
            get { return SlotGroupsEnum.Legs; }
        }
        /// <summary>
        /// Obtains the module slot type 
        /// </summary>
        public override SlotTypesEnum SlotType
        {
            get { return SlotTypesEnum.Modules; }
        }
    }
}